use crate::wheel::Wheel;
use chrono::Local;

mod wheel;

fn main() {
    let mut wheel = wheel::simp_wheel::HasedWheel::new(1000, 52);
    let start = wheel.start(|task| {
        // std::thread::sleep(Duration::from_secs(2));
        println!("{:?} {:?}", Local::now(), task);
    });
    println!("wheel 启动时间 {} -- slot {}", start, wheel.tick_slot());
    while true {

    }
}
